package me.zhengjie.modules.serviceprovider.service;

import me.zhengjie.modules.serviceprovider.domain.TServiceproviderOrderAppraise;
import me.zhengjie.modules.serviceprovider.service.dto.TServiceproviderOrderAppraiseDTO;
import me.zhengjie.modules.serviceprovider.service.dto.TServiceproviderOrderAppraiseQueryCriteria;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable;

/**
* @author xuyukun
* @date 2019-08-25
*/
// @CacheConfig(cacheNames = "tServiceproviderOrderAppraise")
public interface TServiceproviderOrderAppraiseService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    // @Cacheable(keyGenerator = "keyGenerator")
    Object queryAll(TServiceproviderOrderAppraiseQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    // @Cacheable(keyGenerator = "keyGenerator")
    public Object queryAll(TServiceproviderOrderAppraiseQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    // @Cacheable(key = "#p0")
    TServiceproviderOrderAppraiseDTO findById(Integer id);

    /**
     * create
     * @param resources
     * @return
     */
    // @CacheEvict(allEntries = true)
    TServiceproviderOrderAppraiseDTO create(TServiceproviderOrderAppraise resources);

    /**
     * update
     * @param resources
     */
    // @CacheEvict(allEntries = true)
    void update(TServiceproviderOrderAppraise resources);

    /**
     * delete
     * @param id
     */
    // @CacheEvict(allEntries = true)
    void delete(Integer id);
}